package com.xjgz.aio.socket;

import java.nio.ByteBuffer;

import com.xjgz.aio.socket.transport.AioSession;

/**
 * 协议接口
 */
public interface Protocol<T> {

    /**
     * 解码
     */
    T decode(final ByteBuffer readBuffer, AioSession session);
}
